<?php
//0 为都用写数据库
//1 读写分离 读数据库挂掉了用写数据库
//2 读写不分离 当前都用写数据库 写数据库挂了用读数据库
define ('g_db_mode',2);
include_once dirname(__FILE__).'/nn_cms_config/nn_cms_global.php';
global  $g_db_configer_enable;

    /**
     * 主DB
     * @var unknown
     */
    define ('g_db_host','127.0.0.1');
    define ('g_db_name','nn_bk');
    define ('g_db_username','everyone');
    define ('g_db_password','root');
/**
 * 登录
 * @var unknown
 */
define ('g_sys_loginid','1');
define ('g_sys_loginpwd','1');
/**
 * mysql api类型
 * @var unknown
 */
define('mysql_driver_type','mysqli');
/**
 * 日志库
 * @var unknown
 */
//define ('g_log_db_enable', 1);
//define ('g_log_db_host','192.168.90.94');
//define ('g_log_db_name','nn_bk');
//define ('g_log_db_username','starcor');
//define ('g_log_db_password','starcor');

define ('g_log_db_enable',1);
define ('g_log_db_host','127.0.0.1');
define ('g_log_db_name','nn_cds_log');
define ('g_log_db_username','everyone');
define ('g_log_db_password','root');

/**
 * MSP 配置
 * @var unknown
 */
define ('g_core_vod_url', 'http://192.168.95.197/nn_core/nn_pub_api/nn_pub_api.php');

/**
 * memcache 配置
 * @var unknown
 */
define ('g_memcache_server','127.0.0.1:11211');

/**
 * redis 配置
 * @var unknown
 */
define ('g_redis_host','127.0.0.1');
define ('g_redis_port','6379');
define ('g_redis_password','');

define ('g_db_hash_table_rules','nn_mgtvbk.nns_command.nns_message_id.100;nn_mgtvbk.nns_command_task.nns_command_id.100;nn_mgtvbk.nns_command_task_log.nns_command_task_id.100');
define ('g_db_hash_table_modes','nn_mgtvbk.nns_command.0;nn_mgtvbk.nns_command_task.0;nn_mgtvbk.nns_command_task_log.0');